<?php

error_reporting(7);

$template_name = "search.html";
require "common.php";
require "tools/class.weixin.php";
require "tools/class.search.php";

$search=new SEARCH($DB);
$keywords=$_POST["s_keyword"];

$lists=$search->lists($keywords);

$weixin=new WEIXIN($DB);
$iguesslike=$weixin->iguesslike($keyword);
//*****生成分类数据//
require_once "tools/tree/sort.class.php";
$tree = new SortClass($DB);
$tree->showt_weixin_cate_list(CATEPARENTID);
$treelist=$tree->showhtml;
//*****生成分类数据结束//

$tpl->assign("searchresult",$lists);
$tpl->assign("iguesslike",$iguesslike);
$tpl->assign("cate_tree",$treelist);
$tpl->output();

?>